%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ft=erlang ts=4 sw=4 et

%% Platform-specific installation paths
{platform_bin_dir,      "/usr/lib/vernemq/bin"}.
{platform_data_dir,     "/var/lib/vernemq"}.
{platform_etc_dir,      "/etc/vernemq"}.
{platform_base_dir,     "/usr/lib/vernemq"}.
{platform_lib_dir,      "/usr/lib/vernemq/lib"}.
{platform_log_dir,      "/var/log/vernemq"}.
{cuttlefish_schema_dir, "/usr/share/vernemq/schema"}.
{platform_share_dir,    "/usr/share/vernemq"}.

%%
%% etc/vm.args
%%
{node,                  "VerneMQ@127.0.0.1"}.
{crash_dump,            "/var/log/vernemq/erl_crash.dump"}.

%%
%% bin/vernemq
%%
{runner_script_dir,     "/usr/lib/vernemq/bin"}.
{runner_base_dir,       "/usr/lib/vernemq"}.
{runner_etc_dir,        "/etc/vernemq"}.
{runner_log_dir,        "/var/log/vernemq"}.
{runner_lib_dir,        "/usr/lib/vernemq/lib"}.
{runner_patch_dir,      "/usr/lib/vernemq/lib/erlio-patches"}.
{pipe_dir,              "/run/vernemq/"}.
{runner_user,           "vernemq"}.
{runner_wait_process,   "vmq_cluster_node_sup"}.
{runner_ulimit_warn,    65536}.

%% vmq_server
{nodename, "VerneMQ@127.0.0.1"}.
{max_connections, 10000}.
{max_nr_of_acceptors, 10}.
{tls_handshake_timeout, 5000}.
{mqtt_default_ip, "127.0.0.1"}.
{mqtts_default_ip, "127.0.0.1"}.
{mqtt_default_port, 1883}.
{mqtts_default_port, 8883}.
{mqtt_default_ws_ip, "127.0.0.1"}.
{mqtt_default_ws_port, 8080}.
{cluster_default_ip, "0.0.0.0"}.
{cluster_ssl_default_ip, "0.0.0.0"}.
{cluster_ssl_default_port, 44054}.
{cluster_default_port, 44053}.
{http_default_ip, "127.0.0.1"}.
{http_default_port, 8888}.
{https_default_ip, "127.0.0.1"}.
{https_default_port, "8889"}.
{metadata_plugin, vmq_swc}.

%% lager
{console_log_default, file}.

%%
%% cuttlefish
%%
{cuttlefish,            "on"}.
{cuttlefish_conf,       "vernemq.conf"}.
